package com.yuan.sys.modular.mould.enums;

import com.yuan.core.annotion.ExpEnumType;
import com.yuan.core.exception.enums.abs.AbstractBaseExceptionEnum;
import com.yuan.sys.core.consts.SysExpEnumConstant;
import lombok.Getter;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2021年10月25日 09:47
 */
@Getter
@ExpEnumType(module = SysExpEnumConstant.SNOWY_SYS_MODULE_EXP_CODE, kind = SysExpEnumConstant.SYS_MOULD_EXCEPTION_ENUM)
public enum SysMouldExceptionEnum implements AbstractBaseExceptionEnum {

    MOULD_NOT_EXIST(1, "模具不存在"),
    MOULD_REPEAT(2, "模具重复入库"),
    EXCEL_NO_DATA(3, "文件数据为空"),
    ;

    private final Integer code;

    private final String message;

    SysMouldExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
